import { createRouter, createWebHashHistory } from 'vue-router'
import home from '@/views/home.vue'

const router = createRouter({
  history: createWebHashHistory('/team2'),
  routes: [
    {
      path: '/vue2',
      component: home,
      redirect: '/vue2/page1',
      children: [
        {
          path: 'page1',
          component: () => import('@/views/page1.vue')
        },
        {
          path: 'page2',
          component: () => import('@/views/page2.vue')
        }
      ]
    }
  ]
})

export default router
